## Warning: NAs introduced by coercion
##          country iso_code          time_period removal_requests_court_orders
## 1       Pakistan       PK  January - June 2012                             0
## 2         Turkey       TR  January - June 2012                             1
## 3          India       IN  January - June 2013                             1
## 4       Pakistan       PK  January - June 2013                             -
## 5         Russia       RU  January - June 2013                             0
## 6         Turkey       TR  January - June 2013                             3
## 7  United States       US  January - June 2013                             2
## 8          India       IN  January - June 2014                             0
## 9       Pakistan       PK  January - June 2014                             0
## 10        Russia       RU  January - June 2014                             0
## 11        Turkey       TR  January - June 2014                            65
## 12 United States       US  January - June 2014                             5
## 13         India       IN  January - June 2015                             2
## 14      Pakistan       PK  January - June 2015                             0
## 15        Russia       RU  January - June 2015                             0
## 16        Turkey       TR  January - June 2015                           408
## 17 United States       US  January - June 2015                             0
## 18         India       IN  January - June 2016                             1
## 19        Israel       IL  January - June 2016                             0
## 20      Pakistan       PK  January - June 2016                             1
## 21        Russia       RU  January - June 2016                             2
## 22        Turkey       TR  January - June 2016                           712
## 23 United States       US  January - June 2016                             2
## 24         India       IN  January - June 2017                             2
## 25        Israel       IL  January - June 2017                             0
## 26      Pakistan       PK  January - June 2017                             0
## 27        Russia       RU  January - June 2017                             0
## 28        Turkey       TR  January - June 2017                           715
## 29 United States       US  January - June 2017                             4
## 30         India       IN  January - June 2018                             9
## 31        Israel       IL  January - June 2018                             0
## 32      Pakistan       PK  January - June 2018                             3
## 33        Russia       RU  January - June 2018                            56
## 34        Turkey       TR  January - June 2018                           508
## 35 United States       US  January - June 2018                             0
## 36         India     <NA>  January - June 2019                             8
## 37        Israel     <NA>  January - June 2019                             1
## 38      Pakistan     <NA>  January - June 2019                             8
## 39        Russia     <NA>  January - June 2019                           711
## 40        Turkey     <NA>  January - June 2019                           388
## 41 United States     <NA>  January - June 2019                             2
## 42         India       IN July - December 2012                             1
## 43      Pakistan       PK July - December 2012                             -
## 44        Turkey       TR July - December 2012                             0
## 45 United States       US July - December 2012                             2
## 46         India       IN July - December 2013                             2
## 47      Pakistan       PK July - December 2013                             -
## 48        Russia       RU July - December 2013                             0
## 49        Turkey       TR July - December 2013                             2
## 50 United States       US July - December 2013                             2
## 51         India       IN July - December 2014                             1
## 52      Pakistan       PK July - December 2014                             0
## 53        Russia       RU July - December 2014                             2
## 54        Turkey       TR July - December 2014                           328
## 55 United States       US July - December 2014                             6
## 56         India       IN July - December 2015                             1
## 57      Pakistan       PK July - December 2015                             0
## 58        Russia       RU July - December 2015                             6
## 59        Turkey       TR July - December 2015                           450
## 60 United States       US July - December 2015                             3
## 61         India       IN July - December 2016                             1
## 62        Israel       IL July - December 2016                             0
## 63      Pakistan       PK July - December 2016                             0
## 64        Russia       RU July - December 2016                             3
## 65        Turkey       TR July - December 2016                           844
## 66 United States       US July - December 2016                             2
## 67         India       IN July - December 2017                             2
## 68        Israel       IL July - December 2017                             2
## 69      Pakistan       PK July - December 2017                             0
## 70        Russia       RU July - December 2017                             0
## 71        Turkey       TR July - December 2017                           466
## 72 United States       US July - December 2017                             7
## 73         India     <NA> July - December 2018                            10
## 74        Israel     <NA> July - December 2018                             0
## 75      Pakistan     <NA> July - December 2018                             1
## 76        Russia     <NA> July - December 2018                           316
## 77        Turkey     <NA> July - December 2018                           597
## 78 United States     <NA> July - December 2018                             2
##    removal_requests_go_va_t_agency_police_other
## 1                                             1
## 2                                             0
## 3                                             1
## 4                                             -
## 5                                            17
## 6                                             4
## 7                                             0
## 8                                             5
## 9                                            12
## 10                                           32
## 11                                          121
## 12                                           26
## 13                                           31
## 14                                            6
## 15                                           68
## 16                                          310
## 17                                           25
## 18                                           42
## 19                                            1
## 20                                            8
## 21                                        1,599
## 22                                        1,781
## 23                                           98
## 24                                         <NA>
## 25                                         <NA>
## 26                                         <NA>
## 27                                         <NA>
## 28                                         <NA>
## 29                                         <NA>
## 30                                         <NA>
## 31                                         <NA>
## 32                                         <NA>
## 33                                         <NA>
## 34                                         <NA>
## 35                                         <NA>
## 36                                         <NA>
## 37                                         <NA>
## 38                                         <NA>
## 39                                         <NA>
## 40                                         <NA>
## 41                                         <NA>
## 42                                            1
## 43                                            -
## 44                                            6
## 45                                            2
## 46                                            6
## 47                                            -
## 48                                           14
## 49                                            0
## 50                                            6
## 51                                           14
## 52                                            4
## 53                                           89
## 54                                          149
## 55                                           26
## 56                                           39
## 57                                           12
## 58                                        1,729
## 59                                        1,761
## 60                                           98
## 61                                         <NA>
## 62                                         <NA>
## 63                                         <NA>
## 64                                         <NA>
## 65                                         <NA>
## 66                                         <NA>
## 67                                         <NA>
## 68                                         <NA>
## 69                                         <NA>
## 70                                         <NA>
## 71                                         <NA>
## 72                                         <NA>
## 73                                         <NA>
## 74                                         <NA>
## 75                                         <NA>
## 76                                         <NA>
## 77                                         <NA>
## 78                                         <NA>
##    percentage_where_some_content_withheld accounts_specified accounts_withheld
## 1                                      0%                  1              <NA>
## 2                                      0%                  7              <NA>
## 3                                     50%                  2                 0
## 4                                       -                  0                 -
## 5                                     76%                 17                4*
## 6                                      0%                 30                 0
## 7                                      0%                 11                 0
## 8                                      0%                  9                 0
## 9                                     0%*                101                0*
## 10                                    59%                 34                 8
## 11                                   30%*                304               17*
## 12                                     0%                 42                 0
## 13                                     0%                 65                 0
## 14                                     0%                 60                 0
## 15                                    63%                177                22
## 16                                   34%*                  0              125*
## 17                                     0%                 71                 0
## 18                                     0%                129                 0
## 19                                     0%                  1                 0
## 20                                     0%                 32                 0
## 21                                    12%                  0                10
## 22                                    23%                  0               222
## 23                                     0%                150                 0
## 24                                     0%                341                 0
## 25                                     0%                  2                 0
## 26                                     0%                 82                 0
## 27                                    55%                  0                87
## 28                                    11%                  0               204
## 29                                     0%                261                 0
## 30                                     5%                  0                19
## 31                                    33%                 42                22
## 32                                     0%                  0                 0
## 33                                    27%                  0                59
## 34                                    18%                  0               425
## 35                                     0%                228                 0
## 36                                     6%                  0                73
## 37                                     8%                491                 0
## 38                                     0%                  0                 0
## 39                                    34%                  0                 7
## 40                                     5%                  0               264
## 41                                     0%                732                 0
## 42                                     0%                 16                 0
## 43                                      -                  0                 -
## 44                                     0%                  9                 0
## 45                                     0%                 12                 0
## 46                                    13%                 54                 0
## 47                                      -                  0                 -
## 48                                    64%                 14                 1
## 49                                     0%                  2                 0
## 50                                     0%                 11                 0
## 51                                     7%                 15                 1
## 52                                     0%                 24                 0
## 53                                    13%                 91                 3
## 54                                   50%*                  0               62*
## 55                                     0%                 60                 0
## 56                                     0%                 47                 0
## 57                                     0%                 33                 0
## 58                                     5%                  0                14
## 59                                    23%                  0               414
## 60                                     0%                107                 0
## 61                                     0%                295                 0
## 62                                    17%                 34                 0
## 63                                     0%                 19                 0
## 64                                    28%                620                55
## 65                                    19%                  0               290
## 66                                     0%                164                 0
## 67                                     3%                800                17
## 68                                     0%                  5                 0
## 69                                     0%                674                 0
## 70                                    51%                  0                23
## 71                                     3%                  0               148
## 72                                     0%                162                 0
## 73                                     2%                  0                95
## 74                                     0%                  3                 0
## 75                                     0%                  0                 0
## 76                                    46%                  0                15
## 77                                     4%                  0                72
## 78                                     0%                303                 0
##    tweets_withheld accounts_tos accounts_no_action
## 1             <NA>         <NA>               <NA>
## 2             <NA>         <NA>               <NA>
## 3                3         <NA>               <NA>
## 4                -         <NA>               <NA>
## 5                8         <NA>               <NA>
## 6                0         <NA>               <NA>
## 7                0         <NA>               <NA>
## 8                0         <NA>               <NA>
## 9               0*         <NA>               <NA>
## 10              11         <NA>               <NA>
## 11            183*         <NA>               <NA>
## 12               0         <NA>               <NA>
## 13               0         <NA>               <NA>
## 14               0         <NA>               <NA>
## 15              56         <NA>               <NA>
## 16          1,667*         <NA>               <NA>
## 17               0         <NA>               <NA>
## 18               0           89               <NA>
## 19               0            1               <NA>
## 20               0           27               <NA>
## 21             182        1,272               <NA>
## 22           1,571          393               <NA>
## 23               0           82               <NA>
## 24               0          101               <NA>
## 25               0            1               <NA>
## 26               0           19               <NA>
## 27             566          224               <NA>
## 28             497        1,376               <NA>
## 29               0          179               <NA>
## 30             498          142               <NA>
## 31               0           11               <NA>
## 32               0          141               <NA>
## 33             357          764               <NA>
## 34           1,464        2,560               <NA>
## 35               0          173               <NA>
## 36             241          578               <NA>
## 37               1            5               <NA>
## 38               0          234               <NA>
## 39           1,253          905               <NA>
## 40             230        2,536               <NA>
## 41               0          473               <NA>
## 42               0         <NA>               <NA>
## 43               -         <NA>               <NA>
## 44               0         <NA>               <NA>
## 45               0         <NA>               <NA>
## 46              13         <NA>               <NA>
## 47               -         <NA>               <NA>
## 48               9         <NA>               <NA>
## 49               0         <NA>               <NA>
## 50               0         <NA>               <NA>
## 51               0         <NA>               <NA>
## 52               0         <NA>               <NA>
## 53               9         <NA>               <NA>
## 54          1,820*         <NA>               <NA>
## 55               0         <NA>               <NA>
## 56               0           21                 26
## 57               0            9                 24
## 58         82 (74)        1,306                380
## 59   3,003 (2,156)          530              4,992
## 60               0           58                 49
## 61               0          104               <NA>
## 62              16            2               <NA>
## 63               0           12               <NA>
## 64              89          282               <NA>
## 65             489          544               <NA>
## 66               0           64               <NA>
## 67              32          143               <NA>
## 68               0            4               <NA>
## 69               0           42               <NA>
## 70             630          224               <NA>
## 71             322        2,157               <NA>
## 72               0           64               <NA>
## 73             114          320               <NA>
## 74               0            2               <NA>
## 75               0          204               <NA>
## 76           1,441        1,124               <NA>
## 77             355        1,588               <NA>
## 78               0          245               <NA>
##                                                 flags
## 1  /content/dam/transparency-twitter/flags/1x1/pk.svg
## 2  /content/dam/transparency-twitter/flags/1x1/tr.svg
## 3  /content/dam/transparency-twitter/flags/1x1/in.svg
## 4  /content/dam/transparency-twitter/flags/1x1/pk.svg
## 5  /content/dam/transparency-twitter/flags/1x1/ru.svg
## 6  /content/dam/transparency-twitter/flags/1x1/tr.svg
## 7  /content/dam/transparency-twitter/flags/1x1/us.svg
## 8  /content/dam/transparency-twitter/flags/1x1/in.svg
## 9  /content/dam/transparency-twitter/flags/1x1/pk.svg
## 10 /content/dam/transparency-twitter/flags/1x1/ru.svg
## 11 /content/dam/transparency-twitter/flags/1x1/tr.svg
## 12 /content/dam/transparency-twitter/flags/1x1/us.svg
## 13 /content/dam/transparency-twitter/flags/1x1/in.svg
## 14 /content/dam/transparency-twitter/flags/1x1/pk.svg
## 15 /content/dam/transparency-twitter/flags/1x1/ru.svg
## 16 /content/dam/transparency-twitter/flags/1x1/tr.svg
## 17 /content/dam/transparency-twitter/flags/1x1/us.svg
## 18 /content/dam/transparency-twitter/flags/1x1/in.svg
## 19 /content/dam/transparency-twitter/flags/1x1/il.svg
## 20 /content/dam/transparency-twitter/flags/1x1/pk.svg
## 21 /content/dam/transparency-twitter/flags/1x1/ru.svg
## 22 /content/dam/transparency-twitter/flags/1x1/tr.svg
## 23 /content/dam/transparency-twitter/flags/1x1/us.svg
## 24 /content/dam/transparency-twitter/flags/1x1/in.svg
## 25 /content/dam/transparency-twitter/flags/1x1/il.svg
## 26 /content/dam/transparency-twitter/flags/1x1/pk.svg
## 27 /content/dam/transparency-twitter/flags/1x1/ru.svg
## 28 /content/dam/transparency-twitter/flags/1x1/tr.svg
## 29 /content/dam/transparency-twitter/flags/1x1/us.svg
## 30 /content/dam/transparency-twitter/flags/1x1/in.svg
## 31 /content/dam/transparency-twitter/flags/1x1/il.svg
## 32 /content/dam/transparency-twitter/flags/1x1/pk.svg
## 33 /content/dam/transparency-twitter/flags/1x1/ru.svg
## 34 /content/dam/transparency-twitter/flags/1x1/tr.svg
## 35 /content/dam/transparency-twitter/flags/1x1/us.svg
## 36                                               <NA>
## 37                                               <NA>
## 38                                               <NA>
## 39                                               <NA>
## 40                                               <NA>
## 41                                               <NA>
## 42 /content/dam/transparency-twitter/flags/1x1/in.svg
## 43 /content/dam/transparency-twitter/flags/1x1/pk.svg
## 44 /content/dam/transparency-twitter/flags/1x1/tr.svg
## 45 /content/dam/transparency-twitter/flags/1x1/us.svg
## 46 /content/dam/transparency-twitter/flags/1x1/in.svg
## 47 /content/dam/transparency-twitter/flags/1x1/pk.svg
## 48 /content/dam/transparency-twitter/flags/1x1/ru.svg
## 49 /content/dam/transparency-twitter/flags/1x1/tr.svg
## 50 /content/dam/transparency-twitter/flags/1x1/us.svg
## 51 /content/dam/transparency-twitter/flags/1x1/in.svg
## 52 /content/dam/transparency-twitter/flags/1x1/pk.svg
## 53 /content/dam/transparency-twitter/flags/1x1/ru.svg
## 54 /content/dam/transparency-twitter/flags/1x1/tr.svg
## 55 /content/dam/transparency-twitter/flags/1x1/us.svg
## 56 /content/dam/transparency-twitter/flags/1x1/in.svg
## 57 /content/dam/transparency-twitter/flags/1x1/pk.svg
## 58 /content/dam/transparency-twitter/flags/1x1/ru.svg
## 59 /content/dam/transparency-twitter/flags/1x1/tr.svg
## 60 /content/dam/transparency-twitter/flags/1x1/us.svg
## 61 /content/dam/transparency-twitter/flags/1x1/in.svg
## 62 /content/dam/transparency-twitter/flags/1x1/il.svg
## 63 /content/dam/transparency-twitter/flags/1x1/pk.svg
## 64 /content/dam/transparency-twitter/flags/1x1/ru.svg
## 65 /content/dam/transparency-twitter/flags/1x1/tr.svg
## 66 /content/dam/transparency-twitter/flags/1x1/us.svg
## 67 /content/dam/transparency-twitter/flags/1x1/in.svg
## 68 /content/dam/transparency-twitter/flags/1x1/il.svg
## 69 /content/dam/transparency-twitter/flags/1x1/pk.svg
## 70 /content/dam/transparency-twitter/flags/1x1/ru.svg
## 71 /content/dam/transparency-twitter/flags/1x1/tr.svg
## 72 /content/dam/transparency-twitter/flags/1x1/us.svg
## 73                                               <NA>
## 74                                               <NA>
## 75                                               <NA>
## 76                                               <NA>
## 77                                               <NA>
## 78                                               <NA>
##                                                 links
## 1                               /en/countries/pk.html
## 2                               /en/countries/tr.html
## 3                               /en/countries/in.html
## 4                               /en/countries/pk.html
## 5                               /en/countries/ru.html
## 6                               /en/countries/tr.html
## 7                               /en/countries/us.html
## 8                               /en/countries/in.html
## 9                               /en/countries/pk.html
## 10                              /en/countries/ru.html
## 11                              /en/countries/tr.html
## 12                              /en/countries/us.html
## 13                              /en/countries/in.html
## 14                              /en/countries/pk.html
## 15                              /en/countries/ru.html
## 16                              /en/countries/tr.html
## 17                              /en/countries/us.html
## 18 /content/transparency-twitter/en/countries/in.html
## 19 /content/transparency-twitter/en/countries/il.html
## 20 /content/transparency-twitter/en/countries/pk.html
## 21 /content/transparency-twitter/en/countries/ru.html
## 22 /content/transparency-twitter/en/countries/tr.html
## 23 /content/transparency-twitter/en/countries/us.html
## 24                              /en/countries/in.html
## 25                              /en/countries/il.html
## 26                              /en/countries/pk.html
## 27                              /en/countries/ru.html
## 28                              /en/countries/tr.html
## 29                              /en/countries/us.html
## 30                              /en/countries/in.html
## 31                              /en/countries/il.html
## 32                              /en/countries/pk.html
## 33                              /en/countries/ru.html
## 34                              /en/countries/tr.html
## 35                              /en/countries/us.html
## 36                                               <NA>
## 37                                               <NA>
## 38                                               <NA>
## 39                                               <NA>
## 40                                               <NA>
## 41                                               <NA>
## 42                              /en/countries/in.html
## 43                              /en/countries/pk.html
## 44                              /en/countries/tr.html
## 45                              /en/countries/us.html
## 46                              /en/countries/in.html
## 47                              /en/countries/pk.html
## 48                              /en/countries/ru.html
## 49                              /en/countries/tr.html
## 50                              /en/countries/us.html
## 51                              /en/countries/in.html
## 52                              /en/countries/pk.html
## 53                              /en/countries/ru.html
## 54                              /en/countries/tr.html
## 55                              /en/countries/us.html
## 56                              /en/countries/in.html
## 57                              /en/countries/pk.html
## 58                              /en/countries/ru.html
## 59                              /en/countries/tr.html
## 60                              /en/countries/us.html
## 61                              /en/countries/in.html
## 62                              /en/countries/il.html
## 63                              /en/countries/pk.html
## 64                              /en/countries/ru.html
## 65                              /en/countries/tr.html
## 66                              /en/countries/us.html
## 67                              /en/countries/in.html
## 68                              /en/countries/il.html
## 69                              /en/countries/pk.html
## 70                              /en/countries/ru.html
## 71                              /en/countries/tr.html
## 72                              /en/countries/us.html
## 73                                               <NA>
## 74                                               <NA>
## 75                                               <NA>
## 76                                               <NA>
## 77                                               <NA>
## 78                                               <NA>
##                                               report_links
## 1  /en/removal-requests.html#removal-requests-jan-jun-2012
## 2  /en/removal-requests.html#removal-requests-jan-jun-2012
## 3  /en/removal-requests.html#removal-requests-jan-jun-2013
## 4  /en/removal-requests.html#removal-requests-jan-jun-2013
## 5  /en/removal-requests.html#removal-requests-jan-jun-2013
## 6  /en/removal-requests.html#removal-requests-jan-jun-2013
## 7  /en/removal-requests.html#removal-requests-jan-jun-2013
## 8  /en/removal-requests.html#removal-requests-jan-jun-2014
## 9  /en/removal-requests.html#removal-requests-jan-jun-2014
## 10 /en/removal-requests.html#removal-requests-jan-jun-2014
## 11 /en/removal-requests.html#removal-requests-jan-jun-2014
## 12 /en/removal-requests.html#removal-requests-jan-jun-2014
## 13 /en/removal-requests.html#removal-requests-jan-jun-2015
## 14 /en/removal-requests.html#removal-requests-jan-jun-2015
## 15 /en/removal-requests.html#removal-requests-jan-jun-2015
## 16 /en/removal-requests.html#removal-requests-jan-jun-2015
## 17 /en/removal-requests.html#removal-requests-jan-jun-2015
## 18 /en/removal-requests.html#removal-requests-jan-jun-2016
## 19 /en/removal-requests.html#removal-requests-jan-jun-2016
## 20 /en/removal-requests.html#removal-requests-jan-jun-2016
## 21 /en/removal-requests.html#removal-requests-jan-jun-2016
## 22 /en/removal-requests.html#removal-requests-jan-jun-2016
## 23 /en/removal-requests.html#removal-requests-jan-jun-2016
## 24 /en/removal-requests.html#removal-requests-jan-jun-2017
## 25 /en/removal-requests.html#removal-requests-jan-jun-2017
## 26 /en/removal-requests.html#removal-requests-jan-jun-2017
## 27 /en/removal-requests.html#removal-requests-jan-jun-2017
## 28 /en/removal-requests.html#removal-requests-jan-jun-2017
## 29 /en/removal-requests.html#removal-requests-jan-jun-2017
## 30 /en/removal-requests.html#removal-requests-jan-jun-2018
## 31 /en/removal-requests.html#removal-requests-jan-jun-2018
## 32 /en/removal-requests.html#removal-requests-jan-jun-2018
## 33 /en/removal-requests.html#removal-requests-jan-jun-2018
## 34 /en/removal-requests.html#removal-requests-jan-jun-2018
## 35 /en/removal-requests.html#removal-requests-jan-jun-2018
## 36                                                    <NA>
## 37                                                    <NA>
## 38                                                    <NA>
## 39                                                    <NA>
## 40                                                    <NA>
## 41                                                    <NA>
## 42 /en/removal-requests.html#removal-requests-jul-dec-2012
## 43 /en/removal-requests.html#removal-requests-jul-dec-2012
## 44 /en/removal-requests.html#removal-requests-jul-dec-2012
## 45 /en/removal-requests.html#removal-requests-jul-dec-2012
## 46 /en/removal-requests.html#removal-requests-jul-dec-2013
## 47 /en/removal-requests.html#removal-requests-jul-dec-2013
## 48 /en/removal-requests.html#removal-requests-jul-dec-2013
## 49 /en/removal-requests.html#removal-requests-jul-dec-2013
## 50 /en/removal-requests.html#removal-requests-jul-dec-2013
## 51 /en/removal-requests.html#removal-requests-jul-dec-2014
## 52 /en/removal-requests.html#removal-requests-jul-dec-2014
## 53 /en/removal-requests.html#removal-requests-jul-dec-2014
## 54 /en/removal-requests.html#removal-requests-jul-dec-2014
## 55 /en/removal-requests.html#removal-requests-jul-dec-2014
## 56 /en/removal-requests.html#removal-requests-jul-dec-2015
## 57 /en/removal-requests.html#removal-requests-jul-dec-2015
## 58 /en/removal-requests.html#removal-requests-jul-dec-2015
## 59 /en/removal-requests.html#removal-requests-jul-dec-2015
## 60 /en/removal-requests.html#removal-requests-jul-dec-2015
## 61 /en/removal-requests.html#removal-requests-jul-dec-2016
## 62 /en/removal-requests.html#removal-requests-jul-dec-2016
## 63 /en/removal-requests.html#removal-requests-jul-dec-2016
## 64 /en/removal-requests.html#removal-requests-jul-dec-2016
## 65 /en/removal-requests.html#removal-requests-jul-dec-2016
## 66 /en/removal-requests.html#removal-requests-jul-dec-2016
## 67 /en/removal-requests.html#removal-requests-jul-dec-2017
## 68 /en/removal-requests.html#removal-requests-jul-dec-2017
## 69 /en/removal-requests.html#removal-requests-jul-dec-2017
## 70 /en/removal-requests.html#removal-requests-jul-dec-2017
## 71 /en/removal-requests.html#removal-requests-jul-dec-2017
## 72 /en/removal-requests.html#removal-requests-jul-dec-2017
## 73                                                    <NA>
## 74                                                    <NA>
## 75                                                    <NA>
## 76                                                    <NA>
## 77                                                    <NA>
## 78                                                    <NA>
##                                                                                                                                  filename
## 1     /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2012.csv
## 2     /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2012.csv
## 3     /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2013.csv
## 4     /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2013.csv
## 5     /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2013.csv
## 6     /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2013.csv
## 7     /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2013.csv
## 8     /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2014.csv
## 9     /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2014.csv
## 10    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2014.csv
## 11    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2014.csv
## 12    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2014.csv
## 13    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2015.csv
## 14    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2015.csv
## 15    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2015.csv
## 16    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2015.csv
## 17    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2015.csv
## 18    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2016.csv
## 19    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2016.csv
## 20    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2016.csv
## 21    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2016.csv
## 22    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2016.csv
## 23    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2016.csv
## 24    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2017.csv
## 25    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2017.csv
## 26    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2017.csv
## 27    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2017.csv
## 28    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2017.csv
## 29    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2017.csv
## 30 /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2018(1).csv
## 31 /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2018(1).csv
## 32 /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2018(1).csv
## 33 /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2018(1).csv
## 34 /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2018(1).csv
## 35 /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2018(1).csv
## 36    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2019.csv
## 37    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2019.csv
## 38    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2019.csv
## 39    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2019.csv
## 40    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2019.csv
## 41    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jan-jun-2019.csv
## 42    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2012.csv
## 43    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2012.csv
## 44    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2012.csv
## 45    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2012.csv
## 46    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2013.csv
## 47    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2013.csv
## 48    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2013.csv
## 49    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2013.csv
## 50    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2013.csv
## 51    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2014.csv
## 52    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2014.csv
## 53    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2014.csv
## 54    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2014.csv
## 55    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2014.csv
## 56    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2015.csv
## 57    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2015.csv
## 58    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2015.csv
## 59    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2015.csv
## 60    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2015.csv
## 61    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2016.csv
## 62    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2016.csv
## 63    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2016.csv
## 64    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2016.csv
## 65    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2016.csv
## 66    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2016.csv
## 67    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2017.csv
## 68    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2017.csv
## 69    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2017.csv
## 70    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2017.csv
## 71    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2017.csv
## 72    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2017.csv
## 73    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2018.csv
## 74    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2018.csv
## 75    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2018.csv
## 76    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2018.csv
## 77    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2018.csv
## 78    /Users/asmersafi/Documents/Gov 1005/Censorship-On-Social-Media/Raw-Data/Removal Requests///removal-requests-report-jul-dec-2018.csv
##    removal_requests_government_agency_police_other
## 1                                             <NA>
## 2                                             <NA>
## 3                                             <NA>
## 4                                             <NA>
## 5                                             <NA>
## 6                                             <NA>
## 7                                             <NA>
## 8                                             <NA>
## 9                                             <NA>
## 10                                            <NA>
## 11                                            <NA>
## 12                                            <NA>
## 13                                            <NA>
## 14                                            <NA>
## 15                                            <NA>
## 16                                            <NA>
## 17                                            <NA>
## 18                                            <NA>
## 19                                            <NA>
## 20                                            <NA>
## 21                                            <NA>
## 22                                            <NA>
## 23                                            <NA>
## 24                                             102
## 25                                               2
## 26                                              24
## 27                                           1,213
## 28                                           1,995
## 29                                             118
## 30                                            <NA>
## 31                                            <NA>
## 32                                            <NA>
## 33                                            <NA>
## 34                                            <NA>
## 35                                            <NA>
## 36                                            <NA>
## 37                                            <NA>
## 38                                            <NA>
## 39                                            <NA>
## 40                                            <NA>
## 41                                            <NA>
## 42                                            <NA>
## 43                                            <NA>
## 44                                            <NA>
## 45                                            <NA>
## 46                                            <NA>
## 47                                            <NA>
## 48                                            <NA>
## 49                                            <NA>
## 50                                            <NA>
## 51                                            <NA>
## 52                                            <NA>
## 53                                            <NA>
## 54                                            <NA>
## 55                                            <NA>
## 56                                            <NA>
## 57                                            <NA>
## 58                                            <NA>
## 59                                            <NA>
## 60                                            <NA>
## 61                                            <NA>
## 62                                            <NA>
## 63                                            <NA>
## 64                                            <NA>
## 65                                            <NA>
## 66                                            <NA>
## 67                                             142
## 68                                               3
## 69                                              75
## 70                                           1,292
## 71                                           3,828
## 72                                              82
## 73                                            <NA>
## 74                                            <NA>
## 75                                            <NA>
## 76                                            <NA>
## 77                                            <NA>
## 78                                            <NA>
##    removal_requests_go_vi_t_agency_police_other
## 1                                          <NA>
## 2                                          <NA>
## 3                                          <NA>
## 4                                          <NA>
## 5                                          <NA>
## 6                                          <NA>
## 7                                          <NA>
## 8                                          <NA>
## 9                                          <NA>
## 10                                         <NA>
## 11                                         <NA>
## 12                                         <NA>
## 13                                         <NA>
## 14                                         <NA>
## 15                                         <NA>
## 16                                         <NA>
## 17                                         <NA>
## 18                                         <NA>
## 19                                         <NA>
## 20                                         <NA>
## 21                                         <NA>
## 22                                         <NA>
## 23                                         <NA>
## 24                                         <NA>
## 25                                         <NA>
## 26                                         <NA>
## 27                                         <NA>
## 28                                         <NA>
## 29                                         <NA>
## 30                                          237
## 31                                            3
## 32                                          240
## 33                                        1,585
## 34                                        8,480
## 35                                           99
## 36                                         <NA>
## 37                                         <NA>
## 38                                         <NA>
## 39                                         <NA>
## 40                                         <NA>
## 41                                         <NA>
## 42                                         <NA>
## 43                                         <NA>
## 44                                         <NA>
## 45                                         <NA>
## 46                                         <NA>
## 47                                         <NA>
## 48                                         <NA>
## 49                                         <NA>
## 50                                         <NA>
## 51                                         <NA>
## 52                                         <NA>
## 53                                         <NA>
## 54                                         <NA>
## 55                                         <NA>
## 56                                         <NA>
## 57                                         <NA>
## 58                                         <NA>
## 59                                         <NA>
## 60                                         <NA>
## 61                                         <NA>
## 62                                         <NA>
## 63                                         <NA>
## 64                                         <NA>
## 65                                         <NA>
## 66                                         <NA>
## 67                                         <NA>
## 68                                         <NA>
## 69                                         <NA>
## 70                                         <NA>
## 71                                         <NA>
## 72                                         <NA>
## 73                                         <NA>
## 74                                         <NA>
## 75                                         <NA>
## 76                                         <NA>
## 77                                         <NA>
## 78                                         <NA>
##    removal_requests_govt_agency_police_other
## 1                                       <NA>
## 2                                       <NA>
## 3                                       <NA>
## 4                                       <NA>
## 5                                       <NA>
## 6                                       <NA>
## 7                                       <NA>
## 8                                       <NA>
## 9                                       <NA>
## 10                                      <NA>
## 11                                      <NA>
## 12                                      <NA>
## 13                                      <NA>
## 14                                      <NA>
## 15                                      <NA>
## 16                                      <NA>
## 17                                      <NA>
## 18                                      <NA>
## 19                                      <NA>
## 20                                      <NA>
## 21                                      <NA>
## 22                                      <NA>
## 23                                      <NA>
## 24                                      <NA>
## 25                                      <NA>
## 26                                      <NA>
## 27                                      <NA>
## 28                                      <NA>
## 29                                      <NA>
## 30                                      <NA>
## 31                                      <NA>
## 32                                      <NA>
## 33                                      <NA>
## 34                                      <NA>
## 35                                      <NA>
## 36                                       496
## 37                                        12
## 38                                       265
## 39                                     3,099
## 40                                     5,685
## 41                                       168
## 42                                      <NA>
## 43                                      <NA>
## 44                                      <NA>
## 45                                      <NA>
## 46                                      <NA>
## 47                                      <NA>
## 48                                      <NA>
## 49                                      <NA>
## 50                                      <NA>
## 51                                      <NA>
## 52                                      <NA>
## 53                                      <NA>
## 54                                      <NA>
## 55                                      <NA>
## 56                                      <NA>
## 57                                      <NA>
## 58                                      <NA>
## 59                                      <NA>
## 60                                      <NA>
## 61                                      <NA>
## 62                                      <NA>
## 63                                      <NA>
## 64                                      <NA>
## 65                                      <NA>
## 66                                      <NA>
## 67                                      <NA>
## 68                                      <NA>
## 69                                      <NA>
## 70                                      <NA>
## 71                                      <NA>
## 72                                      <NA>
## 73                                       657
## 74                                         2
## 75                                       192
## 76                                     3,028
## 77                                     4,417
## 78                                        81
##    removal_requests_go_vao_t_agency_police_other
## 1                                           <NA>
## 2                                           <NA>
## 3                                           <NA>
## 4                                           <NA>
## 5                                           <NA>
## 6                                           <NA>
## 7                                           <NA>
## 8                                           <NA>
## 9                                           <NA>
## 10                                          <NA>
## 11                                          <NA>
## 12                                          <NA>
## 13                                          <NA>
## 14                                          <NA>
## 15                                          <NA>
## 16                                          <NA>
## 17                                          <NA>
## 18                                          <NA>
## 19                                          <NA>
## 20                                          <NA>
## 21                                          <NA>
## 22                                          <NA>
## 23                                          <NA>
## 24                                          <NA>
## 25                                          <NA>
## 26                                          <NA>
## 27                                          <NA>
## 28                                          <NA>
## 29                                          <NA>
## 30                                          <NA>
## 31                                          <NA>
## 32                                          <NA>
## 33                                          <NA>
## 34                                          <NA>
## 35                                          <NA>
## 36                                          <NA>
## 37                                          <NA>
## 38                                          <NA>
## 39                                          <NA>
## 40                                          <NA>
## 41                                          <NA>
## 42                                          <NA>
## 43                                          <NA>
## 44                                          <NA>
## 45                                          <NA>
## 46                                          <NA>
## 47                                          <NA>
## 48                                          <NA>
## 49                                          <NA>
## 50                                          <NA>
## 51                                          <NA>
## 52                                          <NA>
## 53                                          <NA>
## 54                                          <NA>
## 55                                          <NA>
## 56                                          <NA>
## 57                                          <NA>
## 58                                          <NA>
## 59                                          <NA>
## 60                                          <NA>
## 61                                            96
## 62                                            12
## 63                                            13
## 64                                           519
## 65                                         2,232
## 66                                           100
## 67                                          <NA>
## 68                                          <NA>
## 69                                          <NA>
## 70                                          <NA>
## 71                                          <NA>
## 72                                          <NA>
## 73                                          <NA>
## 74                                          <NA>
## 75                                          <NA>
## 76                                          <NA>
## 77                                          <NA>
## 78                                          <NA>
Plot1 <- wrangledata %>% 
select(country,
       accounts_specified,
       time_period) %>% 
ggplot(aes(x = time_period,
           y = accounts_specified, 
           color = country)) + 
  geom_point() +
  scale_color_stata() +
  theme_few() +
  theme(axis.text.x = element_text(angle = 45,
                                   hjust = 1,
                                   size = 6),
        axis.text.y = element_text(size = 6)) +
  labs(x = "Time Period", 
       y = "Accounts Specified",
       color = "Country", 
       title = "Accounts Specified for Content Withdrawal
from January 2012 to June 2019",
subtitle = "Data from Twitter Transparency Reports") +
 transition_states(
    time_period,
    transition_length = 2,
    state_length = 1
  ) +
  shadow_mark() +
  enter_fade() + 
  exit_shrink() +
  ease_aes('sine-in-out')

Plot1

Plot2 <- wrangledata %>% 
select(country,
       accounts_specified,
       time_period) %>% 
ggplot(aes(x = time_period,
           y = accounts_specified, 
           color = country)) + 
  geom_point() +
  scale_color_stata() +
  theme_few() +
  theme(axis.text.x = element_text(angle = 45,
                                   hjust = 1,
                                   size = 6),
        axis.text.y = element_text(size = 6)) +
  labs(x = "Time Period", 
       y = "Accounts Specified",
       color = "Country", 
       title = "Accounts Specified for Content Withdrawal
from January 2012 to June 2019",
subtitle = "Data from Twitter Transparency Reports") +
 facet_wrap(~country) +
 transition_states(
    time_period,
    transition_length = 2,
    state_length = 1
  ) +
  shadow_mark() +
  enter_fade() + 
  exit_shrink() +
  ease_aes('sine-in-out')

Plot2

wrangledata$percentage_where_some_content_withheld = as.numeric(gsub("[\\%,]", "", wrangledata$percentage_where_some_content_withheld))
## Warning: NAs introduced by coercion
wrangledata <- 
  wrangledata %>% 
  mutate(percentage_where_some_content_withheld = replace_na(percentage_where_some_content_withheld, 0)) 

Plot3 <- wrangledata %>% 
  ggplot(aes(time_period, 
             percentage_where_some_content_withheld,
             color = country)) +
  geom_point() + 
  theme_few() + 
  theme(axis.text.x = element_text(angle = 45,
                                   hjust = 1,
                                   size = 6),
        axis.text.y = element_text(size = 6)) +
  labs(x = "Time Period", 
       y = "Percentage of Requests Complied with",
       color = "Country", 
       title = "Percentage of Requests Complied with by Twitter
January 2012 - June 2019",
subtitle = "Data from Twitter Transparency Reports") +
  scale_color_stata()

Plot3

# Retrieving total - create function for columns. 


mydata$accounts_specified <- as.numeric(mydata$accounts_specified)
## Warning: NAs introduced by coercion
mydata$time_period <- as.factor(mydata$time_period)

mydata$time_period <- factor(mydata$time_period, levels =
           c("January - June 2012",
             "July - December 2012",
             "January - June 2013",
             "July - December 2013",
             "January - June 2014",
             "July - December 2014",
             "January - June 2015",
             "July - December 2015",
             "January - June 2016",
             "July - December 2016",
             "January - June 2017",
             "July - December 2017",
             "January - June 2018",
             "July - December 2018",
             "January - June 2019"))

mydata <- 
  mydata %>% 
  mutate(accounts_specified = replace_na(accounts_specified, 0)) 


get_total <- function(x){
 wrangledata %>% 
  filter(time_period == x) %>% 
  summarize(total = sum(accounts_specified)) %>% 
  pull(total)
}

get_total("January - June 2014")
## [1] 490
total_accounts_specified <- 
  tibble(time_period = c("January - June 2012",
             "July - December 2012",
             "January - June 2013",
             "July - December 2013",
             "January - June 2014",
             "July - December 2014",
             "January - June 2015",
             "July - December 2015",
             "January - June 2016",
             "July - December 2016",
             "January - June 2017",
             "July - December 2017",
             "January - June 2018",
             "July - December 2018",
             "January - June 2019"))

total_accounts_specified$time_period <- factor(total_accounts_specified$time_period, levels =
           c("January - June 2012",
             "July - December 2012",
             "January - June 2013",
             "July - December 2013",
             "January - June 2014",
             "July - December 2014",
             "January - June 2015",
             "July - December 2015",
             "January - June 2016",
             "July - December 2016",
             "January - June 2017",
             "July - December 2017",
             "January - June 2018",
             "July - December 2018",
             "January - June 2019"))


total_accounts_specified$time_period <- as.factor(total_accounts_specified$time_period)

total_accounts_specified <- total_accounts_specified %>% 
  mutate(total_accounts = map_dbl(time_period, get_total))

Plot4 <- total_accounts_specified %>% 
  ggplot(aes(time_period, total_accounts)) + 
  scale_color_solarized() +
  geom_line(aes(group = 1, color = "darkblue")) +
  geom_point(color = "darkblue") +
  theme_few() +
   labs(x = "Time Period", 
       y = "Total Number of Accounts Specified in Given Time Period",
       color = "Country", 
       title = "Total Number of Accounts Specified
January 2012 - June 2019",
caption = "Data from Twitter Transparency Reports") + 
  theme(axis.text.x = element_text(angle = 45,
                                   hjust = 1,
                                   size = 7),
        axis.text.y = element_text(size = 7),
        axis.title.x = element_text(size = 10),
        axis.title.y = element_text(size = 8)) + 
  theme(legend.position = "none") + 
  transition_reveal(as.numeric(time_period))

Plot4